package com.sundayfactory.workpaychart;

import kankan.wheel.widget.adapters.AbstractWheelTextAdapter;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

public class adapter_year extends AbstractWheelTextAdapter {
    private String[] yearList ;
    
    protected adapter_year(Context context, String[] itemlist) {
	super(context, R.layout.wheel_text_item , NO_RESOURCE);
	yearList = itemlist;
	setItemTextResource(R.id.text);
	
    }
    @Override
    public View getItem(int index, View convertView, ViewGroup parent) {
	 View view = super.getItem(index, convertView, parent);
	return view;
    }
    @Override
    public int getItemsCount() {
	// TODO Auto-generated method stub
	return yearList.length;
    }

    @Override
    protected CharSequence getItemText(int index) {
	// TODO Auto-generated method stub
	return yearList[index];
    }

}
